#include "StdAfx.h"
#include "GrayImageProc.h"


CGrayImageProc::CGrayImageProc(void)
{
}


CGrayImageProc::~CGrayImageProc(void)
{
}

void CGrayImageProc::processImage(unsigned char r,unsigned char g,unsigned char b,unsigned long *outColor)
{
	unsigned long Gray = ( r*30 + g*59 + b*11 + 50 ) / 100;
	*outColor = RGB(Gray,Gray,Gray);
}